package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;

import java.util.List;

/**
 * ClassName: MenuService
 * Description:
 * date: 2019/12/1 11:22
 * Author Airson
 * Since JDK 1.8
 */
public interface MenuService {
    //菜单添加
    void add(Menu menu);

    //菜单分页查询
    PageResult queryPage(QueryPageBean queryPageBean);

    //根据id删除菜单
    void delById(Integer id);

    //根据id查找菜单
    Menu findById(Integer id);

    //菜单修改
    void edit(Menu menu);

    //查询所有菜单
    List<Menu> findAll();


}
